package cn.bjit.service;

import cn.bjit.model.CouponRecordMessage;
import cn.bjit.request.LockCouponRecordRequest;
import cn.bjit.util.JsonData;
import cn.bjit.vo.CouponRecordVO;

import java.util.Map;

public interface CouponRecordService {
//    分页查询优惠券领取记录
    Map<String, Object> page(int page, int size);
    //根据id查询个人优惠券详情
    CouponRecordVO findById(long recordId);
    //锁定优惠券记录
    JsonData lockCouponRecords(LockCouponRecordRequest lockCouponRecordRequest);
     //释放优惠券
    boolean releaseCouponRecord(CouponRecordMessage recordMessage);
}
